import 'package:flutter_sample/tab/bean/article_bean.dart';
import 'package:flutter_sample/tab/bean/category_bean.dart';

class ArticleRepo {

  Future<List<CategoryBean>> getCategories() async {
    return [
      CategoryBean(1, "美文"),
      CategoryBean(2, "最新"),
      CategoryBean(3, "美食"),
      CategoryBean(4, "健康"),
      CategoryBean(5, "游戏"),
      CategoryBean(6, "搞笑"),
      CategoryBean(7, "明星"),
      CategoryBean(8, "生活"),
      CategoryBean(9, "科技"),
    ];
  }

  Future<List<ArticleBean>> getArticles(String category, int page) async {
    return [
      ArticleBean(1, "这些“国之瑰宝”，习近平倾注了巨大心力", "https://img02.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FMwBEMhBTTzuodv6dVQic1yPyTTfe9Dic1ykYdicKYkJPoo3vvia0Poeb2YFG8Yfsmq7NK2HpIicvkX9MayzS7hZ2rgg%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(2, "[解局]不再区分城乡!这个领域再推新改革", "https://img04.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQeUoMcnKBk1SoWjd3LtWZOEEzDKNfcoyfUlRkAaFnBEZLxGc7FIaNACefcyTEPqUaCSEC4noJpiaQa0MVJZTEHQ%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(3, "近期坐过这些航班列车请主动上报", "https://img04.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FKdAStmiazbn8s83SfOv07duF4iaWEykQKlpHMBewNoJkTwzDY650qoLu5hwA1HpywXUA1vfHzvphvia6Yzic4Zb0tQ%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(4, "不按规定报告个人有关事项，违纪!", "https://img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_jpg%2F5r2fdOVlScqT6ZBX5NLHSFBIrzFHCe1dCvGKLLeKjxd7NFOFjKiaJICwvE0qKtpuibbeKZuqdVxm9wKKAZPswDtg%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(5, "铁路推出免费退票", "https://img03.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FKdAStmiazbn8s83SfOv07duF4iaWEykQKl1uC0icWwlxtGkwIOWBLHRzfgsyCr3mCzaCrGfciaSojibl2ibiaKLehia5og%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(6, "[胖哥试车]优点突出、缺点更突出!胖哥试驾全新汉兰达", "https://img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FlOVLXMOQHDic5YiatutUWKTqybX8t9lAA4kLZ4KMIlWcA2wlib2qzaN1by9ObKA63AIjedQnstlZCuKGNVC8guoxA%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(7, "当运动轿跑开始追求舒适型，全新宝马M4还是你曾经的挚爱吗?", "https://img02.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FoeXblDmsc2cItWleEicAafibt6GYWFpBzspHsRvKfSLrbTN0DOMQvYstFfrLL93VticvyaRz1rKPG62icAB2uYvicaw%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(8, "蔚来7月失守销冠，新造车企业“蔚小理”重排座次|经观汽车", "https://img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2F5icIW0tB61JKFbcEqrLrNM1AhMLqxDhuyyibYgHOzOrowezAyaka6uJjDHjHLwhyb4XknqKuRwQl3bTYPVtP6rVg%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
      ArticleBean(9, "混动的滋味，试驾WEY玛奇朵HEV", "https://img02.sogoucdn.com/net/a/04/link?appid=100520033&url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2F6JQiavCoU6AHml11T46GoAfmJFfV3bjVVfz6MWJia9O5o9x5vqCKfnNC9KKMbzq2zRib0icaxEv3wicicUnQXOLqwJ9Q%2F0%3Fwx_fmt%3Djpeg", "0.3", "1200"),
    ];
  }

  ArticleRepo._privateConstructor();
  static final ArticleRepo _instance = ArticleRepo._privateConstructor();
  static ArticleRepo get instance { return _instance;}
}